﻿
Partial Class MasterPage
    Inherits System.Web.UI.MasterPage

    Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
        If Context.User.Identity.Name.ToString = "" Then
            HyperLink1.Text = "Login"
            HyperLink1.NavigateUrl = "~/login.aspx"

        Else
            HyperLink1.Text = "Logout - " & Context.User.Identity.Name.ToString()
            HyperLink1.NavigateUrl = "~/logout.aspx"
            Session("AccountName") = Context.User.Identity.Name.ToString

        End If
        If Context.User.IsInRole("Manager") Then
            lblManage.Visible = True
        End If
        'lblmanage.Visible = False
    End Sub

End Class

